#include "global.h"
#include "infoblock.h"

//-----------------------------------------------------------------------------
// Global Variables
//-----------------------------------------------------------------------------

/*****************************************
Target App FW InfoBlock Format
Byte offset (from last byte) - Field

0   Signature Byte Low (0) (sig bytes are added by the bootloader after successful programming)
-1  Signature Byte (1)
-2  Signature Byte (2)
-3  Signature Byte High (3)
-4  InfoBlock Length = 7 (for CAN BL; count includes this length byte)
-5  MCU Code
-6  BL Type
-7  Flash Page Size Code
-8  Application FW Version Low (0)
-9  Application FW Version High (1)
-10 BL-specific byte (0) - SMBus Device Addr - Not used for read by FW (only present for hex file image)
*****************************************/

// Reverse byte order for Keil:
const U8 code TGT_App_InfoBlock[] =
{
    BL_SPECIFIC_BYTE,
    APP_FW_VERSION_HIGH,
    APP_FW_VERSION_LOW,
    TGT_FLASH_PAGE_SIZE_CODE,
    TGT_BL_TYPE,
    TGT_MCU_CODE,
    TGT_APP_INFOBLOCK_LENGTH,
    SIG_BYTE3,
    SIG_BYTE2,
    SIG_BYTE1,
    SIG_BYTE0,
};



//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------
